package com.app.babygo.help;

import java.util.UUID;

import com.app.babygo.Register;
import com.app.babygo.obj.AchievementTask;

public class ActionHelper {

	public static final String imageSavingPath = ""; //TODO;
	public static final String DefaultAccessLevel = "abc123"; //TODO;
	
	public static String UserIdGenerater(String UserName) {
		return UUIDGenerator();
	}

	public static String PasswordEncode(String Password) {
		// TODO; encrypt password
		return "";
	}

	public static String ChildIdGenerator() {
		return UUIDGenerator();
	}
	
	private static String UUIDGenerator() {
		return UUID.randomUUID().toString(); 
	}
	
	public static String TaskIdGenerater(){
		return UUIDGenerator();
	}
	
	public static boolean UserNameValidation(String UserId){
		return UserId.contains("[!-/]+") || UserId.contains("[:-@]+");
	}
	
	public static boolean PasswordIDValidation(String Password){
		//TODO;
		return true;
	}
	
	public static boolean StringIDValidation(String Password){
		//TODO;
		return true;
	}
	
	public static boolean StringValidation(String input){
		//TODO;
		return true;
	}
	
	public static String GetCurrentUserId(){
		return Register.currentUserId;
	}

	public static boolean UnlockTask(AchievementTask UnlockTask, String unlockDescription, String unlockdate, String imagePath) {
		//TODO;
		return false;
	}
}
